package com.sxjh.entity.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class WagonNumberAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车号")
    @NotBlank(message = "车号不允许为空")
    private String number;

    @ApiModelProperty(value = "车辆类型 0|卡车,1|三轮车,2|四轮车")
    @NotNull(message = "车辆类型不允许为空")
//    @Min(value = 0, message = "车辆类型错误")
//    @Max(value = 2, message = "车辆类型错误")
    private Integer type;

    @ApiModelProperty(value = "毛重载重/KG")
    @NotBlank(message = "毛重载重不允许为空")
    @Min(value = 0, message = "毛重载重必须大于0")
    private String capacity;

    @ApiModelProperty(value = "皮重下限/KG")
    @NotBlank(message = "皮重下限不允许为空")
    @Min(value = 0, message = "皮重下限必须大于0")
    private String tare;

    @ApiModelProperty(value = "净重最大/KG")
    @Min(value = 0, message = "毛重载重必须大于0")
    private String floatingValue;

    @ApiModelProperty(value = "毛重上限/KG")
    @Min(value = 0, message = "毛重载重必须大于0")
    private String grossFloatingValue;

    @ApiModelProperty(value = "皮重下限/KG")
    @Min(value = 0, message = "毛重载重必须大于0")
    private String tareFloatingValue;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "承运单位")
    private String unit;

    @ApiModelProperty("承运单位id")
    private Integer unitId;

    @ApiModelProperty("车辆图片,多个逗号分隔")
    private String img;

    @ApiModelProperty(value = "司机id")
    private Integer driverId;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "删除标记,1:否,-1:是")
    private Integer delFlag = 1;

}
